﻿using Book.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Book.Entities
{
    public class MenuEntity
    {
        //[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [MaxLength(30)]
        public string Id { get; set; }
        public String Name { get; set; }
        public String EName { get; set; }
        public Double Order { get; set; }
        public String Url { get; set; }
        public TemplateEnum Template { get; set; }
        public string ParentId { get; set; }
        public bool ifdelete { get; set; }
        public List<MenuEntity> Childrens = new List<MenuEntity>();
    }
}
